package com.daylightrobbery.server.packet.game.house;

import com.daylightrobbery.server.packet.type.DataPacket;
import com.daylightrobbery.server.packet.type.RoomDataPacket;
import org.springframework.stereotype.Component;

@Component
public class SellHousePacket implements RoomDataPacket {
    public static int type = 50005;
    public String uid;
    public int roomId;
    public int pathIndex ;
    public int money ;


    @Override
    public DataPacket process() {
        return this;
    }

    public String getUid() {
        return uid;
    }

    public SellHousePacket setUid(String uid) {
        this.uid = uid;
        return this;
    }

    public SellHousePacket setRoomId(int roomId) {
        this.roomId = roomId;
        return this;
    }

    public int getPathIndex() {
        return pathIndex;
    }

    public SellHousePacket setPathIndex(int pathIndex) {
        this.pathIndex = pathIndex;
        return this;
    }

    public int getMoney() {
        return money;
    }

    public SellHousePacket setMoney(int money) {
        this.money = money;
        return this;
    }

    @Override
    public int getType() {
        return type;
    }

    @Override
    public int getRoomId() {
        return roomId;
    }

    @Override
    public String toString() {
        return "SellHousePacket{" +
                "uid='" + uid + '\'' +
                ", roomId=" + roomId +
                ", pathIndex=" + pathIndex +
                ", money=" + money +
                '}';
    }
}
